﻿using System;
using EAdvice.Data;
using EAdvice.Entities;

public partial class DeniedPage : System.Web.UI.Page
{
    #region Events
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string authUserName = Context.User.Identity.Name.Split('\\')[1];
            WebUser user = DataRepository.WebUserProvider.GetByUserId(authUserName);
            if (user != null)
            {
                Response.Redirect("~/");
            }
        }
        catch (Exception ex)
        {
        }
    }
    #endregion
}
